const services = [
  {
    mealType: ["charge"],
    // mealType: "charge",
    serviceName: "融聚交易",
    apis: [
      {
        name: "支付总额",
        api: "/api/merchant/index/totalPayment", 
      },
      {
        name: "订单量",
        api: "/api/merchant/index/orderQuantity",
      },
      {
        name: "平均客单价",
        api: "/api/merchant/index/averagePrice",
      },
      {
        name: "订单总额VS支付总额",
        api: "/api/merchant/index/orderChart",
      },
      {
        name: "订单转换率",
        api: "/api/merchant/index/orderConversionRate",
      },
      {
        name: "支付渠道",
        api: "/api/merchant/index/payChannelGroup",
      },
      {
        name: "财务汇总",
        api: "/api/workBench/orderStreamGroupByDay",
      },
    ],
  },
  {
    // mealType: "merchant",
    mealType: ["charge", "merchant"],
    serviceName: "多级商户",
    apis: [
      {
        name: "支付总额",
        api: "/api/merchant/index/totalPayment",
      },
      {
        name: "分账金额",
        api: "/api/merchant/index/ledgerAmount",
      },
      {
        name: "在途金额",
        api: "/api/merchant/index/onTheWayAmount",
      },
      {
        name: "支付总额VS分账金额",
        api: "/api/merchant/index/orderChart",
      },
      {
        name: "支付渠道",
        api: "/api/merchant/index/payChannelGroup",
      },
      {
        name: "分账占比",
        api: "/api/merchant/index/ledgerProportion",
      },
      {
        name: "财务汇总",
        api: "/api/workBench/orderStreamGroupByDay",
      },
    ],
  },
  {
    // mealType: "account",
    mealType: ["charge", "account"],
    serviceName: "用户账户",
    apis: [
      {
        name: "支付总额",
        api: "/api/merchant/index/totalPayment",
      },
      {
        name: "订单量",
        api: "/api/merchant/index/orderQuantity",
      },
      {
        name: "新增用户量",
        api: "/api/merchant/index/countNewUserNum",
      },
      {
        name: "订单总额VS支付总额",
        api: "/api/merchant/index/orderChart",
      },
      {
        name: "订单转换率",
        api: "/api/merchant/index/orderConversionRate",
      },
      {
        name: "支付渠道",
        api: "/api/merchant/index/payChannelGroup",
      },
      {
        name: "财务汇总",
        api: "/api/workBench/orderStreamGroupByDay",
      },
    ],
  },
  {
    mealType: ["charge", "merchant", "account"],
    serviceName: "多级商户,用户账户",
    apis: [
      {
        name: "支付总额",
        api: "/api/merchant/index/totalPayment",
      },
      {
        name: "分账金额",   
        api: "/api/merchant/index/ledgerAmount",
      },
      {
        name: "在途金额",
        api: "/api/merchant/index/onTheWayAmount",
      },
      {
        name: "支付总额VS分账金额",
        // api: "/api/workBench/orderAndSettleTotalAmountGroup",
        api: "/api/merchant/index/orderChart",
      },
      {
        name: "订单转换率",
        api: "/api/merchant/index/orderConversionRate",
      },
      {
        name: "支付渠道",
        api: "/api/merchant/index/payChannelGroup",
      },
      {
        name: "财务汇总",
        api: "/api/workBench/orderStreamGroupByDay",
      },
    ],
  },
]; 

export default services;
